package JUC;

/**
 * @Author cj
 * @Date 2023/5/12 8:18
 */
public class ThreadDemo1 {

    public static class MyThread extends Thread {

        @Override
        public void run() {
            System.out.println("MyThread.run()");
        }
    }

    public static void main(String[] args) {
        //开启两个线程
        MyThread myThread1 = new MyThread();
        MyThread myThread2 = new MyThread();
        myThread1.start();
        myThread2.start();
    }

}
